package com.youlu.campus.base.interactive;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户收藏信息基础类
 * @author: zhuhuaiqi
 * @date: 2020/12/7 14:11
 */
@Data
public class UserCollectBase implements Serializable {

    @Id
    private String id;

    /**
     * 类型 DK打卡 DT动态、PL评论、WZ文章、SP商品
     */
    private String type = "WZ";
    /**
     * 内容ID
     */
    @Indexed
    private String infoId;
    /**
     * 标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subTitle;
    /**
     * 封面
     */
    private String images;
    /**
     * 收藏者ID
     */
    @Indexed
    private String collectorId;

    @CreatedDate
    private Date createdTime;
}
